package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.SubCommunity;

/**
 * sub_communityService接口
 * 
 * @author wfj
 * @date 2025-10-29
 */
public interface ISubCommunityService 
{
    /**
     * 查询sub_community
     * 
     * @param id sub_community主键
     * @return sub_community
     */
    public SubCommunity selectSubCommunityById(String id);

    /**
     * 查询sub_community列表
     * 
     * @param subCommunity sub_community
     * @return sub_community集合
     */
    public List<SubCommunity> selectSubCommunityList(SubCommunity subCommunity);

    /**
     * 新增sub_community
     * 
     * @param subCommunity sub_community
     * @return 结果
     */
    public int insertSubCommunity(SubCommunity subCommunity);

    /**
     * 修改sub_community
     * 
     * @param subCommunity sub_community
     * @return 结果
     */
    public int updateSubCommunity(SubCommunity subCommunity);

    /**
     * 批量删除sub_community
     * 
     * @param ids 需要删除的sub_community主键集合
     * @return 结果
     */
    public int deleteSubCommunityByIds(String[] ids);

    int deleteSubCommunityById(String id);

    public List<Map<String,String>> customSql(String sql);

    public String saveData(SubCommunity subCommunity);

    List<Map<String, Object>>  selectSubCommunityListForApp(SysUser user);
}
